package com.dushuren.project.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.dushuren.project.model.dto.SearchWordsRequest;
import com.dushuren.project.model.entity.SuggestWordsSearch;
import com.dushuren.project.model.vo.SuggestWordsSearchVo;

import java.util.List;

/**
* @author qieqie
* @description 针对表【suggest_words_search(搜索记录表)】的数据库操作Service
* @createDate 2022-11-02 09:10:03
*/
public interface SuggestWordsSearchService extends IService<SuggestWordsSearch> {

  /***
   * 分页查询 搜索词
   * @param searchWordsRequest
   * @return
   */
  Page<SuggestWordsSearchVo> queryListData(SearchWordsRequest searchWordsRequest);

  /**
   * 获取 listSuggestWordsSearchVo
   * @param page
   * @return
   */
  List<SuggestWordsSearchVo> getSuggestWordsSearchVo(Page<SuggestWordsSearch> page);

  /**
   * 删除 搜索词
   * @param searchId
   * @return
   */
  Long deleteSearchWords(Long searchId);

  /***
   * 修改 搜索词
   * @param suggestWordsSearch 修改的数据
   * @return
   */
  Long updateSearchWords(SuggestWordsSearch suggestWordsSearch);

  /***
   * 增加 搜索词
   * @param suggestWordsSearch 增加的数据
   * @return
   */
  Long addSearchWords(SuggestWordsSearch suggestWordsSearch);
}


